package com.itfreer.bpm.option.para;

import java.util.ArrayList;
import java.util.List;

import com.itfreer.bpm.power.para.UserInfo;


/**
 * 任务节点信息
 * @author Administrator
 *
 */
public class TaskInfo {
	private List<UserInfo> user=new ArrayList<UserInfo>();//节点的审批人
	private String taskName="";//节点名称
	private String taskdefinedid="";//节点定义id
	
	private TaskType taskType=TaskType.CommonTask;
	
	public void setAllUserSelect() {
		if(user!=null && user.size()>0) {
			for(UserInfo iuser:user) {
				iuser.setUserSelected(true);
			}
		}
	};
	
	/**
	 * 设置节点任务类型
	 * @return
	 */
	public TaskType getTaskType() {
		return taskType;
	}
	/**
	 * 设置节点任务类型
	 * @return
	 */
	public void setTaskType(TaskType taskType) {
		this.taskType = taskType;
	}
	/**
	 * 节点是否被选中
	 */
	private boolean taskSelect=false;
	/**
	 * 节点是否被选中
	 */
	public boolean isTaskSelect() {
		return taskSelect;
	}
	/**
	 * 节点是否被选中
	 */
	public void setTaskSelect(boolean taskSelect) {
		this.taskSelect = taskSelect;
	}
	/**
	 * 节点的审批人
	 * @return
	 */
	public List<UserInfo> getUser() {
		return user;
	}
	/**
	 * 节点的审批人
	 * @return
	 */
	public void setUser(List<UserInfo> user) {
		this.user = user;
	}
	/**
	 * 节点名称
	 * @return
	 */
	public String getTaskName() {
		return taskName;
	}
	/**
	 * 节点名称
	 * @return
	 */
	public void setTaskName(String taskName) {
		this.taskName = taskName;
	}
	/**
	 * 节点定义id
	 * @return
	 */
	public String getTaskdefinedid() {
		return taskdefinedid;
	}
	/**
	 * 节点定义id
	 * @return
	 */
	public void setTaskdefinedid(String taskdefinedid) {
		this.taskdefinedid = taskdefinedid;
	}
	 
	 
}
